home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / codecs / mycomponent / mycomponentroutines.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.3 KB  |  44 lines

  1. /*
  2.     File:        MyComponentRoutines.c
  3.  
  4.     Contains:    simple component sample.
  5.  
  6.     Written by: John Wang    
  7.  
  8.     Copyright:    Copyright © 1994-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/18/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 03/14/94    JW                Re-Created for Universal Headers.
  21.  
  22. */
  23. #ifdef THINK_C
  24. #define        applec
  25. #endif
  26.  
  27. #include    <Errors.h>
  28. #include    <Components.h>
  29.  
  30. #include    "MyComponent.h"
  31. #include    "MyComponentRoutines.h"
  32.  
  33. /* ------------------------------------------------------------------------- */
  34.  
  35. pascal ComponentResult MyProcedure(Handle storage)
  36. {
  37.     PrivateGlobals         **myPrivateGlobals = (PrivateGlobals **) storage;
  38.  
  39.     if (kDEBUGME)
  40.         DebugStr("\pIn MyProcedure1()");
  41.  
  42.     return(noErr);
  43. }
  44.